<template>
  <div class="p-5 text-center">
    <p style="font-size: 16rem; color: #eee; text-shadow: 2px 2px 2px #ccc">404</p>
    <p class="text-muted">糟糕，页面发生了莫明错误~~~~~~</p>
    <button type="button" class="btn btn-primary mr-3" @click="goIndex">返回主页</button>
    <button type="button" class="btn btn-outline-secondary" @click="logout">重新登录</button>
  </div>
</template>
<script>
export default {
  components: {},
  props: {},
  data() {
    return {}
  },
  computed: {},
  watch: {},
  created() {},
  mounted() {},
  methods: {
    goIndex() {
      this.$router.replace('/')
    },

    async logout() {
      await this.$store.dispatch('logout')
      this.$router.push('/login')
    },
  },
}
</script>
<style scoped></style>
